package com.lindroy.jetpacknotes.lifecycle

import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.lindroy.jetpacknotes.R
import com.lindroy.jetpacknotes.extensions.launchAct
import com.lindroy.jetpacknotes.lifecycle.lifecycle_custom.CustomLifecycleActivity
import com.lindroy.jetpacknotes.lifecycle.lifecycle_service.LifecycleServiceActivity
import com.lindroy.jetpacknotes.lifecycle.lifecycle_ui.new_way.LifecycleActivity
import kotlinx.android.synthetic.main.activity_lifecycle_category.*

class LifecycleCategoryActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_lifecycle_category)
        btnLifecycleUI.setOnClickListener { launchAct<LifecycleActivity>() }
        btnLifecycleCustom.setOnClickListener {
            startActivity(Intent(this,CustomLifecycleActivity::class.java))
        }
        btnLifecycleService.setOnClickListener { launchAct<LifecycleServiceActivity>() }
    }
}